|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.RawDocument
public class RawDocument
An output document backed by an in-memory XML stream.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.vtp.framework.interactions.core.platforms.IDocument |
|---|
DEFAULT_CONTENT_TYPE |
| Constructor Summary | |
|---|---|
RawDocument(java.lang.String documentType)
Creates a new RawOutputDocument. |
|
RawDocument(java.lang.String documentType,
java.lang.String contentType)
Creates a new RawOutputDocument. |
|
| Method Summary | |
|---|---|
void |
appendText(java.lang.String text)
Adds the given text to the end of the current document text. |
void |
clearText()
Clears all the text contained in this document. |
java.lang.String |
getContentType()
Returns a string representing the MIME type of XML document this instance produces. |
java.lang.String |
getDocumentType()
Returns a string representing the dialect of XML document this instance produces. |
java.lang.String |
toString()
|
javax.xml.transform.Source |
toXMLSource()
Creates and returns an XML representation of this document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RawDocument(java.lang.String documentType)
RawOutputDocument.
documentType - The the type of XML document this instance contains.
public RawDocument(java.lang.String documentType,
java.lang.String contentType)
RawOutputDocument.
documentType - The the type of XML document this instance contains.| Method Detail |
|---|
public void appendText(java.lang.String text)
text - The text to add.public void clearText()
public java.lang.String getDocumentType()
IDocument
getDocumentType in interface IDocumentpublic java.lang.String getContentType()
IDocument
getContentType in interface IDocument
public javax.xml.transform.Source toXMLSource()
throws java.lang.IllegalStateException
IDocument
toXMLSource in interface IDocumentjavax.xml.transform API.
java.lang.IllegalStateException - If any aspect of this document's state
prevents it from being transformed into XML.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||